package com.itec.learn.java.design.singleton.simple;

/**
 * 最简单的单例模式, 也叫 “饿汉” 单例模式， 提前创建好了单例对象
 */
public class Singleton {
    private static Singleton instance = new Singleton();

    private Singleton(){

    }

    public static Singleton getInstance(){
        return instance;
    }
}
